package com.jziver.library.service;

import com.jziver.library.entiry.LibraryCard;
import com.jziver.library.entiry.User;

import java.util.List;

/**
 * Created by Administrator on 2016/7/6.
 */
public interface UserService {
    User findOne(Integer id);

    List<User> findAll();

    void register(User user);

    User login(User user);

    void update(User user);

    void addLibraryCard(User user,LibraryCard libraryCard);  //添加借书证

    boolean validateUsername(String usename);   //检测用户名是否已存在

}
